/**
 * @(#)FooterView.java 2011
 *
 *  Copyright 2011 classic-commerce
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 * @author: <a href="mailto:richard@ioniq.ca">Richard Mutezintare</a>
 *
 */
package ca.ioniq.client.view;

import ca.ioniq.client.widget.ListItemWidget;
import ca.ioniq.client.widget.UnorderedListWidget;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;

public class FooterView extends Composite {

    private static final String ID = "footer";

    public FooterView() {
        FlowPanel panel = new FlowPanel();

        UnorderedListWidget topLevel = new UnorderedListWidget();

        ListItemWidget limoilou = new ListItemWidget();
        limoilou.getElement().setClassName("limoilou");

        UnorderedListWidget secondLevelLimoilou = new UnorderedListWidget();
        ListItemWidget limoiloustore = new ListItemWidget("limoilou");
        limoiloustore.getElement().setClassName("title");

        secondLevelLimoilou.add(limoiloustore);
        secondLevelLimoilou.add(new ListItemWidget("2930 1ERE AVENUE,"));
        secondLevelLimoilou.add(new ListItemWidget("LIMOILOU, QUEBEC"));
        secondLevelLimoilou.add(new ListItemWidget("GIL 3P3"));
        secondLevelLimoilou.add(new ListItemWidget("TEL.: 418-626-8111"));

        ListItemWidget levis  = new ListItemWidget();
        levis.getElement().setClassName("levis");

        UnorderedListWidget secondLevelLevis = new UnorderedListWidget();
        ListItemWidget levisStore = new ListItemWidget("Levis");
        levisStore.getElement().setClassName("title");

        secondLevelLevis.add(levisStore);
        secondLevelLevis.add(new ListItemWidget("44 ROUTE PRESIDENT KENNEDY,"));
        secondLevelLevis.add(new ListItemWidget("LEVIS, QUEBEC"));
        secondLevelLevis.add(new ListItemWidget("TEL.: 418-833-6666"));

        ListItemWidget heure = new ListItemWidget();
        heure.getElement().setClassName("heure");

        UnorderedListWidget secondLevelHeure = new UnorderedListWidget();
        ListItemWidget heureTitle = new ListItemWidget("Heure d'ouverture");
        heureTitle.getElement().setClassName("title");
        secondLevelHeure.add(heureTitle);
        secondLevelHeure.add(new ListItemWidget("LUN. AU MERC.: 10H AM A 17H30 PM"));
        secondLevelHeure.add(new ListItemWidget("JEU. ET VEN.: 10H AM A 21H PM"));
        secondLevelHeure.add(new ListItemWidget("SAM. ET DIM.: 10 AM A 17H PM"));

        topLevel.add(limoilou);
        topLevel.add(levis);
        topLevel.add(heure);

        initWidget(panel);
    }
}
